<?php
if (isset($_POST['username'])) {
     //echo "hello".$username = $_POST['username'];
    $username = $_POST['username'];
    mysql_connect("localhost","root","");
mysql_select_db("susudo");
$cheak_username_query="select * from `users` where username='$username'";
$result=mysql_query($cheak_username_query);
if ( mysql_num_rows($result) > 0 )
    echo "err";
else {
    echo"suss";
}
mysql_close();
}

?>
